﻿using System;
using System.Collections.Generic;
using System.Text;

namespace com.dz.common
{
    public class Consts
    {
        /// <summary>
        /// 成功的
        /// </summary>
        public const int Successed = 0;

        /// <summary>
        /// 失败的
        /// </summary>
        public const int Failed = -1;

        public const string VifCode = "yc@!78k";

        public static DateTime MinValue = new DateTime(1954, 1, 1);

        public static DateTime MaxValue = new DateTime(9999, 1, 1);

        /// <summary>
        /// 推荐类型
        /// </summary>
        public  enum CommendType
        {
            /// <summary>
            /// 所有
            /// </summary>
            ALL=-1,
            /// <summary>
            /// 封面推介
            /// </summary>
            ICON=1,
            /// <summary>
            /// vip推荐
            /// </summary>
            VIP=2,
            /// <summary>
            /// 重点推荐
            /// </summary>
            IMPORTANCE=3,
            /// <summary>
            /// 男生精选
            /// </summary>
            Boy=4,
            /// <summary>
            /// 女生精选
            /// </summary>
            Girl=5,
            /// <summary>
            /// 分类推荐
            /// </summary>
            Category=6
        }

        /// <summary>
        /// 分页类型
        /// </summary>
        public enum PageType
        {
            /// <summary>
            /// 输出分页记录总数
            /// </summary>
            OutTotalCount=1,
            /// <summary>
            /// 不输出分页记录总数
            /// </summary>
            NoTotalCount=0
        }

        /// <summary>
        /// 站点
        /// </summary>
        public enum Site
        {
            /// <summary>
            /// 起点
            /// </summary>
            qidian=1,
            /// <summary>
            /// 悠悠文学
            /// </summary>
            uutxt=2,
            
            /// <summary>
            /// 手打吧
            /// </summary>
            shouda8=3,
        }

        public enum OrderType
        {
            ASC=1,
            DESC=0
        }

        public enum BookType
        {
            /// <summary>
            /// 书架图书
            /// </summary>
            BookCase=1,
            /// <summary>
            /// 推荐图书
            /// </summary>
            BookCommend=2
        }

        /// <summary>
        /// 小说排序方式
        /// </summary>
        public enum BookOrderType
        {
            /// <summary>
            /// 按点击
            /// </summary>
            Click,
            /// <summary>
            /// 按收藏
            /// </summary>
            Collect,
            /// <summary>
            /// 按更新时间
            /// </summary>
            UpdateTime,
            /// <summary>
            /// 小说字数
            /// </summary>
            WordsCount
        }
    }
}
